package com.szeldon.declatest.declaration.endpoints;

import com.szeldon.utils.ValuesUtils;

/**
 * Class encapsulating endpoint of test suite.
 * 
 * @author szeldon
 * 
 */
public class EndpointDeclaration {
    private String id;
    private String description;
    private String url;
    private String settingsId;

    /**
     * Creates endpoint part declaration.
     * 
     * @param id
     * @param description
     * @param url
     * @param settingsId
     * 
     */
    public EndpointDeclaration(String id, String description, String url, String settingsId) {
        this.id = ValuesUtils.checkNamedValueForNull("id", id);
        this.description = ValuesUtils.checkNamedValueForNull("description", description);
        this.url = ValuesUtils.checkNamedValueForNull("url", url);
        this.settingsId = ValuesUtils.checkNamedValueForNull("settingsId", settingsId);
    }

    public String getId() {
        return id;
    }

    public String getDescription() {
        return description;
    }

    public String getUrl() {
        return url;
    }

    public String getSettingsId() {
        return settingsId;
    }

}
